# 获取运行结果

from dotenv import load_dotenv
from openai import OpenAI

load_dotenv()
client = OpenAI()

msg_list = client.beta.threads.messages.list(thread_id="thread_2FvZwOUge1KnBbz1cvtllQcF")

msg = {}

for m in msg_list:
    # print(m)
    if m.role == "assistant" :
        msg = m
        break


print(msg.content[0].text.value)